package com.hxzy.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.entity.Business;
import com.hxzy.shop.entity.BusinessConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 商户独立业务配置(BusinessConfig)表数据库访问层
 *
 * @author makejava
 * @since 2022-08-25 15:55:40
 */
@Mapper
public interface BusinessConfigMapper extends BaseMapper<BusinessConfig> {

    /**
     * 根据编码查询独立业务是否存在
     */
    int getByBusinessCode(@Param("businessCode") String businessCode, @Param("merchantId") Long merchantId);

    /**
     * 查询商户附加业务
     */
    List<Business> getByBusinessService();
}

